import request from '@/utils/request';
//平台属性管理

//获取一级分类列表
export const reqCategory1 = () => request({url:`/admin/product/getCategory1`,method: 'GET'});

//获取二级分类列表
export const reqCategory2=(id) => request({url:`/admin/product/getCategory2/${id}`,method: 'GET'});

//获取三级分类列表
export const reqCategory3 = (id) => request({ url: `/admin/product/getCategory3/${id}`, method: 'GET' });

//获取表格商品属性
export const reqGoodsProperties = (id1, id2, id3) => request({ url: `/admin/product/attrInfoList/${id1}/${id2}/${id3}`, method: 'GET' });//不是说的

//添加商品属性
export const reqAddAttrInfo = (data) => request({ url: `/admin/product/saveAttrInfo`,data, method: 'POST' });
/*
携带参数：
{
    attrName:"String",
    attrValueList:[
        {
        attrid:0,
        id:0,
        valueName:"String"
        }
    ],
    categoryId:0,
    categoryLevel:3,
}
*/